public class Company {
    public String employeeNo;
    public String address;
    public String name;
    public double salary;

    //构造器
    public Company(String employeeNo, String address, String name, double salary) {
        this.employeeNo = employeeNo;
        this.address = address;
        this.name = name;
        this.salary = salary;
    }

    //月收入
    public double computePay(double salary) {
        return this.salary / 12;
    }

    //邮寄
    public void mailCheck() {
        System.out.println("邮寄地址：" + this.address);
    }
}
